package com.hansming.bss.modules.sfc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.common.service.CrudService;
import com.hansming.bss.modules.sfc.dao.BannarDao;
import com.hansming.bss.modules.sfc.dao.CarInfoDao;
import com.hansming.bss.modules.sfc.entity.Bannar;
import com.hansming.bss.modules.sfc.entity.CarInfo;



/**
 * BannarService类 
 * @author Administrator
 *
 */



@Service
@Transactional(readOnly = true)
public class BannarService extends CrudService<CarInfoDao,CarInfo> {

	
	@Autowired
	private BannarDao bannardao;
	
	//得到首页bannar信息
	public List<Bannar> getIndexBannars(){
		return bannardao.getIndexBannars();
	}
	
	
	public List<Bannar> getBannarByType(String type){
		return bannardao.getBannarByType(type);
	}
}
